import os
import logging
from pkgr.tests.test_pkgr import Test_Pkgr

logger = logging.getLogger('pkgr.tests.Test_Pkgr_Groups')

class Test_Pkgr_Groups(Test_Pkgr):
    def test_groups_load(self):
        ''' loading of groups '''
        pkgr = self.pkgr
        self.assertTrue(len(pkgr.get_all_groups()) > 0, "should have groups")
        self.assertTrue(pkgr.get_all_groups()[0].id == 'testgroup', "the first group should be test group")
